<template name="components">
	<view>
		<scroll-view scroll-y class="page">
			<view class="nav-list">
				<navigator hover-class="none" :url="'/pages/plugin/' + item.name" class="nav-li" navigateTo
					:class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]"
					v-for="(item,index) in elements" :key="index">
					<view class="nav-title">{{item.title}}</view>
					<view class="nav-name">{{item.name}}</view>
					<text :class="'cuIcon-' + item.cuIcon"></text>
				</navigator>
			</view>
			<view class="cu-tabbar-height"></view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "components",
		data() {
			return {
				StatusBar: this.StatusBar,
				CustomBar: this.CustomBar,
				elements: [{
					title: '索引列表',
					name: 'indexes',
					color: 'cyan',
					cuIcon: 'newsfill'
				}, {
					title: '微动画',
					name: 'animation',
					color: 'cyan',
					cuIcon: 'newsfill'
				}, {
					title: '全屏抽屉',
					name: 'drawer',
					color: 'cyan',
					cuIcon: 'newsfill'
				}, {
					title: '垂直导航',
					name: 'verticalnav',
					color: 'cyan',
					cuIcon: 'newsfill'
				}]
			};
		},
		methods: {},
	}
</script>

<style>
	.page {
		height: 100vh;
	}
</style>